<extend name="Layout/application" xmlns="http://www.w3.org/1999/html"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>系统首页</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading" align="center">
                            <h2>公司信息</h2>
                        </div>



                        <div class="panel-body" >
                            <volist name="information" id="i">
                                <form class="form-horizontal" role="form" method="post" action="{{:U('do_information')}}" >
                                    <input type="hidden" name="id" value="1">
                                    <div class="pageone">
                                        <div class="form-group" >
                                            <label for="site_owner" class="col-sm-2 control-label">网站所有者</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control" name="site_owner" id="site_owner"  placeholder="" value="{{$i.site_owner}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="company_name" class="col-sm-2 control-label">公司名称</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="company_name" id="company_name" placeholder="" value="{{$i.company_name}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="site_name" class="col-sm-2 control-label">网站名称</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="site_name" id="site_name" placeholder="" value="{{$i.site_name}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="keyword" class="col-sm-2 control-label">关键词</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="keyword" id="keyword" placeholder="" value="{{$i.keyword}}">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="icp" class="col-sm-2 control-label">ICP备案号</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="icp" id="icp" placeholder="" value="{{$i.icp}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="copyright_information" class="col-sm-2 control-label">版权信息</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="copyright_information" id="copyright_information" placeholder="" value="{{$i.copyright_information}}">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="pagetwo" style="display: none">


                                        <div class="form-group">
                                            <label for="email" class="col-sm-2 control-label">E-mail</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="email" id="email" placeholder="" value="{{$i.email}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="qq" class="col-sm-2 control-label">QQ</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="qq" id="qq" placeholder="" value="{{$i.qq}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="phone" class="col-sm-2 control-label">联系电话</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="phone" id="phone" placeholder="" value="{{$i.phone}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="faxes" class="col-sm-2 control-label">传真</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="faxes" id="faxes" placeholder="" value="{{$i.faxes}}">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="sina" class="col-sm-2 control-label">新浪微博</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="sina" id="sina" placeholder="" value="{{$i.sina}}">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <button type="button" class="btn btn-success submit" id="back" disabled>后退</button>
                                            <button type="button" class="btn btn-success submit" id="prev">前进</button>

                                        </div>
                                    </div>

                                </form>
                            </volist>




                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>
</block>
<block name="js">
    <script>
        $(function () {
            $("#prev").click(function () {
                if($("#prev").text()=="提交"){
                    $(".form-horizontal").submit();
                }
                $(".pageone").hide();
                $(".pagetwo").show();
                $("#back").prop("disabled",false);
                $("#prev").text("提交");

            })
            $("#back").click(function () {
                $(".pageone").show();
                $(".pagetwo").hide();
                $("#back").prop("disabled",true);
                $("#prev").text("前进");

            })


        })

    </script>

</block>